package com.steakliu.event.register;

import com.steakliu.event.register.event.MessageEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author 刘牌
 * @Title:
 * @date 2022-06-2323:26
 */
@Component
@Slf4j
public class MessageNoticeListener {

    //@EventListener(MessageEvent.class)
    public void sendMsg(MessageEvent messageEvent){
        log.info("【"+messageEvent.getNoticeMessageDTO().getTel()+"】:发送短信通知");
        log.info("【"+messageEvent.getNoticeMessageDTO().getEmail()+"】:发送邮件通知");
    }
}
